home *** CD-ROM | disk | FTP | other *** search
- OPEN "C:\WINPLOT\DATA_GEN.CSV" FOR OUTPUT AS #1 ' Open your output file
- PRINT #1, "comment, This is a BASIC generated file"
- PRINT #1, "signals, x, sin(x)/x, -dif(sin(x)/x)"
- PRINT #1, "data"
- FOR x = -6.2832 TO 12.566 STEP .4 ' Define X range and resolution
- y = SIN(x) / x
- dy = y0 - y: y0 = y
- i = i + 1
- PRINT i; " > "; x
- PRINT #1, x; ","; ' output X axis
- PRINT #1, y; ",";
- PRINT #1, dy ' last signal has no ;",";
- NEXT x
- CLOSE #1
- END
-
-